﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Admin.Application.Service;
using Windows.Admin.Domain;
using Windows.Application.Share;

namespace Windows.Admin.Application
{
    public interface IRoleService
    {
        /// <summary>
        /// 获取所有角色
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<List<RoleResponse>> GetRoles();
        /// <summary>
        /// 角色视图
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<PageResponse<RoleResponse>> Query(PageRequest<RoleRequest> request);
        /// <summary>
        /// 获取id的角色详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<RoleResponse> Detail(int id);
        /// <summary>
        /// 角色保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(RoleSaveRequest request);
    }
    
}
